<?php
/**
 * JoiEditor - Joostina WYSIWYG Editor
 *
 * Backend toolbar handler
 *
 * @version 1.0 beta 3
 * @package JoiEditor
 * @subpackage	Admin
 * @filename toolbar.joieditor.php
 * @author JoostinaTeam
 * @copyright (C) 2008-2010 Joostina Team
 * @license see license.txt
 *
 **/

defined('_VALID_MOS') or die();

switch($task) {

	default:
		mosMenuBar::startTable();
		mosMenuBar::addNew();
		mosMenuBar::spacer();
		mosMenuBar::deleteList();
		mosMenuBar::spacer();
		mosMenuBar::custom('info', '-info', '', _INFO, false);
		mosMenuBar::endTable();
		break;

	case 'config':
	case 'new':
		mosMenuBar::startTable();
		mosMenuBar::save('save_config');
		mosMenuBar::spacer();
		mosMenuBar::cancel();
		mosMenuBar::endTable();
		break;

	case 'info':
		mosMenuBar::startTable();
		mosMenuBar::cancel();
		mosMenuBar::endTable();
		break;
}